﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MotorLibrary.Model
{
    [Table("ENDPOINT")]
    public class Endpoint: IEntity
    {
        public long ID { get; set; }
        public long TipoID { get; set; }
        [Required, MaxLength(40)]
        public string Nombre { get; set; }
        public string Ruta { get; set; }
        public bool Procesar { get; set; }
        public bool Borrado { get; set; }
        public virtual Tipo Tipo { get; set; }

        public virtual ICollection<Ejecucion> Ejecuciones { get; set; }
        public virtual ICollection<Variable> Variables { get; set; }

        public Endpoint()
        {
            Borrado = false;
        }
    }
}
